<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
<form action="{% url 'auth_app:register' %}" method="POST">
    {% csrf_token %}
    <div style="margin:0 auto;width: 500px">
        <table>
            <tr style="text-align: left">
                <td><label>用户名</label></td>
                <td><input type="text" name="username"></td>
            </tr>
            <tr style="text-align: left">
                <td><label>密码</label></td>
                <td><input type="password" name="password"></td>
            </tr>
            <tr style="text-align: left">
                <td><label>确认密码</label></td>
                <td><input type="password" name="check_password"></td>
            </tr>
        </table>
        <div style="margin:0 auto;width: 300px">
            {% if state %}
                <p style="color: red">{{ state }}</p>
            {% endif %}
        </div>
        <button type="submit">注册</button>
    </div>
</form>
</body>
</html>